export interface ReqParams {
	username: string;
	password: string;
}

export interface ReqAuth {
	auths: string[];
	modules: string[];
	is_admin?: 0 | 1;
}

export interface LoginRes {
	code: number;
	token: string;
}

export interface LoginData {
	username: string;
	password: string;
	code: string;
	uuid: string;
}
export interface FakeoginData {
	username: string;
	password: string;
}
export interface CaptchaImageRes {
	captchaOnOff: boolean;
	img: string;
	uuid: string;
}
export interface ResResult {
	data?: ResResultData;
	status: string | "";
	headers: object;
}
export interface ResResultData {
	code?: number;
	result?: any;
	message: string;
	status: string;
}
// 用户信息返回值
export interface UserInfo {
	userId: number;
	deptId: number;
	userCode: string;
	userName: string;
	nickName: string;
	email: string;
	phonenumber: string;
	sex: string;
	avatar: string;
	salt: string;
	status: string;
	delFlag: string;
	loginIp: string;
	loginDate: string;
	dept: any;
	roles: any[];
	roleIds: any[];
	postIds: any[];
	roleId: any;
	admin: boolean;
}
export interface UserRes {
	code: number;
	msg: string;
	rows: UserInfo[];
	total: number;
}
// 新增用户入参
export interface AddUserParams {
	userName: string;
	nickName: string;
	password: string;
	status: string;
}
// 操作日志分页
export interface OperLogParams {
	pageNum: number;
	pageSize: number;
}
// 操作日志返回值
export interface OperLogItem {
	operId: number;
	title: string;
	businessType: number;
	method: string;
	requestMethod: string;
	operatorType: number;
	operName: string;
	deptName: string;
	operUrl: string;
	operIp: string;
	operLocation: string;
	operParam: string;
	jsonResult: string;
	status: number;
	errorMsg: string;
	operTime: string;
}
export interface OpenLogRes {
	code: number;
	msg: string;
	rows: OperLogItem[];
	total: number;
}
